package com.elomobile.harmony.xml;

public class UniteBernardiType extends com.elomobile.utilitaire.parseurXmlVoyageV3.parseur.xml.Node {
	private static final long serialVersionUID = 4664252270626515931L;

	public UniteBernardiType() {
		super();
	}

	public UniteBernardiType(UniteBernardiType node) {
		super(node);
	}

	public UniteBernardiType(org.w3c.dom.Node node) {
		super(node);
	}

	public UniteBernardiType(org.w3c.dom.Document doc) {
		super(doc);
	}

	public void adjustPrefix() {
		int count;
		count = getDomChildCount(Element, null, "Unite");
		for (int i = 0; i < count; i++) {
			org.w3c.dom.Node tmpNode = getDomChildAt(Element, null, "Unite", i);
			internalAdjustPrefix(tmpNode, true);
			new UniteType(tmpNode).adjustPrefix();
		}
	}

	public int getUniteMinCount() {
		return 1;
	}

	public int getUniteMaxCount() {
		return Integer.MAX_VALUE;
	}

	public int getUniteCount() {
		return getDomChildCount(Element, null, "Unite");
	}

	public boolean hasUnite() {
		return hasDomChild(Element, null, "Unite");
	}

	public UniteType getUniteAt(int index) throws Exception {
		return new UniteType(getDomChildAt(Element, null, "Unite", index));
	}

	public UniteType getUnite() throws Exception {
		return getUniteAt(0);
	}

	public void removeUniteAt(int index) {
		removeDomChildAt(Element, null, "Unite", index);
	}

	public void removeUnite() {
		while (hasUnite())
			removeUniteAt(0);
	}

	public void addUnite(UniteType value) {
		appendDomElement(null, "Unite", value);
	}

	public void insertUniteAt(UniteType value, int index) {
		insertDomElementAt(null, "Unite", index, value);
	}

	public void replaceUniteAt(UniteType value, int index) {
		replaceDomElementAt(null, "Unite", index, value);
	}
}
